class Element < ActiveRecord::Base
	
	belongs_to :color
	
	def upload=(binary_data)
		unless binary_data.blank?
			self.binary = binary_data.read
		end
	end
end

class Corner < Element
	belongs_to :corner_family
	
	def upload_b=(binary_data)
		unless binary_data.blank?
			self.binary_b = binary_data.read
		end
	end
end

class Design < Element
	belongs_to :brand
end

class Monogram < Element
	belongs_to :monogram_family
end